﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace System.Collections.Generic
{
    public class EmptyEnumerable<T> : IEnumerable<T>
    {
        IEnumerator<T> Enumerator;
        public EmptyEnumerable(IEnumerator<T> enumerator)
        {
            Enumerator = enumerator;

        }



        #region IEnumerable<T> Members

        public IEnumerator<T> GetEnumerator()
        {
            return Enumerator;
        }

        #endregion

        #region IEnumerable Members

        IEnumerator IEnumerable.GetEnumerator()
        {
            return Enumerator;
        }

        #endregion
    }
}
